const express = require('express');

const router = express.Router();

const path= require('path');

router.get('/test/layer', (req, res) => {
    res.sendFile(path.join(global.rootPath, 'view', 'test/layer.html'))
})

router.get('/test/validate', (req, res) => {
    res.sendFile(path.join(global.rootPath, 'view', 'test/validate.html'));
})

router.get('/test/ueditor', (req, res) => {
    res.sendFile(path.join(global.rootPath, 'view', 'test/ueditor.html'));
})

router.get('/test/page', (req, res) => {
    res.sendFile(path.join(global.rootPath, 'view', 'test/page.html'));
})
router.get('/test/promise', (req, res) => {
    res.sendFile(path.join(global.rootPath, 'view', 'test/promise.html'));
})
module.exports = router;